getById

public final static Element getById(SearchContext $self, String id)
public final static Element getById(SearchContext $self, String id)

Returns the first Element found in the current search context by the given id.

Since

8.0.0

Throws

if no element found.